package com.library.books.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.library.books.domain.BooksRule;
import com.library.books.domain.vo.BooksJoinBooksCopyJoinBooksRule;

import java.util.List;

/**
 * 书籍规则Service接口
 *
 * @author hb
 * @date 2024-10-14
 */
public interface IBooksRuleService extends IService<BooksRule>
{

    /**
     * 查询书籍规则列表
     *
     * @param booksRule 书籍规则
     * @return 书籍规则集合
     */
    List<BooksRule> selectBooksRuleList(BooksRule booksRule);

    /**
     * 根据书籍副本id查询书籍规则详情
     *
     * @param booksCopyId 书籍副本id
     * @return 书籍规则信息
     */
    BooksRule selectBooksRuleInfoByBooksCopyId(Long booksCopyId);

    /**
     * 根据书籍副本id查询书籍详情和书籍规则详情
     *
     * @param booksCopyId 书籍副本id
     * @return 书籍规则信息
     */
    BooksJoinBooksCopyJoinBooksRule selectBooksRuleInfoAndBooksInfoByBooksCopyId(Long booksCopyId);

}
